package com.sample.controller.datastore.ex1;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import com.sample.service.datastore.ex1.EasyCRUD;
import com.sample.service.datastore.ex2.TxSample;

public class CreateController extends Controller {

    @Override
    public Navigation run() throws Exception {

        EasyCRUD.create();

        TxSample.create("user1", "Taro");
        TxSample.create("user2", "Jiro");

        return redirect("/datastore/ex1/read");
    }
}
